(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <aros/asmcall.h>
#include <proto/alib.h>
IPTR HookEntry()
SYNOPSIS
struct Hook * hook
APTR object
APTR param

FUNCTION
Some high level languages (HLL) don't allow to pass arguments in registers. For these HLLs, it's not possible to call a hook directly. To use hooks with these HLLs, you must put HookEntry into hook->h_Entry and the real callback function into hook->h_SubEntry. HookEntry will push the registers on the stack and then call hook->h_SubEntry.

INPUTS
hook
Call this hook.
object
This is the object which is passed to the hook. The valid values for this parameter depends on the definition of the called hook.
param
Pass these parameters to the specified object
RESULT
The return value depends on the definition of the hook.

NOTES
EXAMPLE
BUGS
SEE ALSO
CallHookA(), CallHook()
HISTORY
27.01.1997 ldp
Include proto instead of clib
28.11.1996 aros
A couple of new functions in amiga.lib

Easier code to handle stacktags and stackmethods.